Received: from sol.ccs.deakin.edu.au (sol.ccs.deakin.edu.au [128.184.1.1]) by kantti.helsinki.fi (8.6.9/8.6.5) with SMTP id DAA14578 for <blitz-list@helsinki.fi>; Fri, 29 Jul 1994 03:30:46 +0300
Received: from hareth (hareth.cm.deakin.edu.au [128.184.80.165]) by sol.ccs.deakin.edu.au (8.6.8.1/8.6.6) with SMTP id KAA25922; Fri, 29 Jul 1994 10:30:11 +1000
From: Mark Kuzmycz <kuzmycz@deakin.edu.au>
Received: by hareth (5.0/client-1.3)
id AA00962; Fri, 29 Jul 1994 10:30:10 --1000
Date: Fri, 29 Jul 1994 10:30:10 --1000
Message-Id: <9407290030.AA00962@hareth>
To: blitz-list@helsinki.fi
Subject: Strings
Cc: acid@iconz.co.nz
X-Sun-Charset: US-ASCII
content-length: 839
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Status:
Status: O
I've been attempting to create strings outside of blitz and have come to the
conclusion that I souldn't as Blitz crashes when it trys to free the string.
With this in mind I have now proceeded to create a library to scan a block
of memory extracting strings terminated with a new line (faster edit function).
This is my current interpretation of the way command in a library work.
Register A3 points to a tempory string. I can only assume that this is
the string buffer.
When a function, that returns a string, finishes it returns the string
size in d0. The part that I'm not sure about is what does A3 return.
I've seen other library code and for the library a3 returns a pointer
to the last character in the string.
Is this correct?
Also could someone elaborate a bit more apon the tutorial for creating a library.